<script lang="ts" setup="">
import { ref } from 'vue'
import { message } from 'ant-design-vue'

let text = ref<string>(
		'该组件为[v-md-editor](https://ckang1229.gitee.io/vue-markdown-editor/zh/quick-start.html#%E5%BF%AB%E9%80%9F%E5%BC%80%E5%A7%8B)，详情请查阅官方文档',
	),
	leftToolBar =
		'undo redo clear | h bold italic strikethrough quote emoji | ul ol table hr | link image code | save '

function handle_CopyCodeSuccess() {
	message.success('复制成功')
}
</script>

<template>
	<v-md-editor
		v-model="text"
		:left-toolbar="leftToolBar"
		height="600px"
		@copy-code-success="handle_CopyCodeSuccess"
	></v-md-editor>
</template>
